package ip对象;

import java.net.InetAddress;

public class MyInetAddress {
    public static void main(String[] args) throws Exception{
        InetAddress address = InetAddress.getByName("192.168.15.53");
        System.out.println(address.getAddress());
        System.out.println(address.getHostAddress());
        System.out.println(address.getHostName());
    }
}
